package temp.lho.lws.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import temp.lho.lws.emum.MsgStatusEmum;
import temp.lho.lws.mapper.IBaseMapper;
import temp.lho.lws.mapper.ILoginMapper;
import temp.lho.lws.pojo.TbRole;
import temp.lho.lws.service.ILoginService;
import temp.lho.lws.vo.LoginVo;

import java.util.List;

/**
 * @author liuws
 * @create 2020-06-28 10:03
 */
@Service("loginService")
public class LoginServiceImpl extends BaseServiceImpl<LoginVo> implements ILoginService {

    @Autowired
    private ILoginMapper loginMapper;

    @Override
    public LoginVo login(String useraccount) {
        return loginMapper.login(useraccount);
    }

    @Override
    public List<TbRole> findUserRoles(Integer userId) {
        return loginMapper.findUserRoles(userId);
    }

    @Override
    protected IBaseMapper<LoginVo> baseMapper() {
        return loginMapper;
    }
}
